package com.zhentao.service;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.dto.AnnouncementsFindDto;
import com.zhentao.model.common.manger.pojo.Announcements;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 薄超轩
* @description 针对表【announcements】的数据库操作Service
* @createDate 2024-09-28 17:13:03
*/
public interface MaAnnouncementsService extends IService<Announcements> {
    /**
     * 后台管理：公告新增
     * @param announcements
     * @return
     */
    ResponseResult maAnnouncementsInsert(Announcements announcements);

    /**
     * 后台管理：公告删除
     * @param id
     * @return
     */
    ResponseResult maAnnouncementsDelete(Integer id);


    /**
     * 后台管理：公告修改
     * @param announcements
     * @return
     */
    ResponseResult maAnnouncementsUpdate(Announcements announcements);


    /**
     * 后台管理：公告查询
     * @param dto
     * @return
     */
    ResponseResult maAnnouncementsFindAll(AnnouncementsFindDto dto);

    /**
     * 公告上下架
     * @param id
     * @return
     */

    ResponseResult upAndDown(Integer id);
}
